import request from '@/utils/request'

// 获取数据库的表
export const getTables = (query) => {
  return request({
    url: '/apiTable/tables',
    method: 'get',
    params: query
  })
}

// 获取数据库的表的字段
export const getTablesColumns = (query) => {
    return request({
      url: '/apiTable/table-columns',
      method: 'get',
      params: query
    })
  }

// 根据sql查询
export const getExecuteQuery = (query) => {
    return request({
      url: '/apiTable/execute-query',
      method: 'get',
      params: query
    })
  }  